package com.designpatternspart2.structuraldesignpatterns.decoratorpattern;

/**
 *
 * @author Lance
 */
public class LegDecorator extends AnimalDecorator
{

    public LegDecorator(Animal animal)
    {
        super(animal);
    }

    @Override
    public void describe()
    {
        getAnimal().describe();
        System.out.println("I have legs");
        dance();
    }

    public void dance()
    {
        System.out.println("I can dance");
    }
}
